LOCAL_MAKE_INCLUDE := include
override TEMPLATE := make_templates/unit_tests
override LOCAL_TEMPLATE := $(LOCAL_MAKE_INCLUDE)/$(TEMPLATE)

ifneq ($(shell cat $(LOCAL_TEMPLATE) 2> /dev/null),)
include $(LOCAL_TEMPLATE)
else
include $(TEMPLATE)
endif

OCTAVE	:= octave

$(TEMPDIR)/vector.run: matrix.data square_matrix.data matrix_vector.data dot_product.data

ifneq ($(shell command -v $(OCTAVE) 2> /dev/null),)
%.data: %.octave
	$(OCTAVE) -q $< | sed 's/[ABans=]//g' > $@
endif

